exception handling in python pdf